<?php
/**
 * Created by PhpStorm.
 * User: jswei
 * Date: 2018/4/24
 * Time: 9:13
 */

namespace app\admin\validate;
use think\Validate;

class Lottery extends Validate
{
    protected $rule = [
        'aid'  => 'require',
        'prize' => 'require',
        'money' => 'require',
        'num' => 'require',
//        'chance' => 'require',
//        'address' => 'require',
    ];

    protected $message  =   [
        'aid.require'      => '文章id必须',
        'prize.require'      => '奖项名必须',
        'money.require'=>'金额必须',
        'num.require'=>'数量必须',
//        'chance.require'=>'几率必须',
//        'address.require'=>'请填写详细地址'
    ];
}